package javaVersion.learn.streamProcess;

import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @program: myFlink
 * @description: 基于文件的Source
 * @author: WincoMa
 * @create: 2020-07-17 16:32
 **/
public class Pro2_StreamFromFile {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment senv = StreamExecutionEnvironment.getExecutionEnvironment();
        DataStreamSource<String> textDataStream = senv.readTextFile("D:\\WorkSpace\\myFlink\\src\\main\\resources\\my.csv");
        textDataStream.print();
        senv.execute();
    }
}
